package com.simrobot.common.result;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {

    SUCCESS(200,"成功"),
    FAIL(201,"失败"),
    SERVICE_ERROR(202,"服务异常"),
    DATA_ERROR(203,"数据异常"),
    LOGIN_AUTH(204,"未登录"),
    LOGIN_ERROR(205,"认证失败"),
    PERMISSION(206,"没有权限")
    ;
    private Integer code;
    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
